<template>
  <el-dialog title="合作商详情" :visible="visible" @close="closeFn">
    <div class="ReplenishmentBody">
      <el-form label-width="100px" class="demo-ruleForm">
        <el-row>
          <el-col :span="12"
            ><div>
              合作商名字:
              <span style="padding-left: 20px">{{
                Replenishment.name
              }}</span>
            </div></el-col
          >
          <el-col :span="12"
            ><div>
              联系人 :
              <span style="padding-left: 20px">{{
                Replenishment.account
              }}</span>
            </div></el-col
          >
          <el-col :span="12"
            ><div>
              联系电话 :
              <span style="padding-left: 20px">{{
                Replenishment.mobile
              }}</span>
            </div></el-col
          >
          <el-col :span="12"
            ><div>
              分成比例 :
              <span style="padding-left: 20px">{{
                Replenishment.ratio+'%'
              }}</span>
            </div></el-col
          >

        </el-row>
      </el-form>
    </div>
  </el-dialog>
</template>

<script>
export default {
  methods: {
    closeFn () {
      console.log(1)
      this.$emit('closeViewFn')
    }
  },
  props: {
    Replenishment: {
      type: Array,
      required: true
    },
    visible: {
      type: Boolean,
      required: true
    },
    id: {
      type: Array,
      required: true
    }
  },
  data () {
    return {
      tableData: []
    }
  }
}
</script>

<style lang="scss" scoped>
::v-deep .el-dialog {
  border-radius: 25px;
  width: 40%;
  // height: 530px;
}
::v-deep .el-col {
  height: 38px;
  // padding: 15px;
}
::v-deep .el-dialog__body {
  padding: 30px 60px;
}

::v-deep .el-table th.el-table__cell.is-leaf,
.el-table td.el-table__cell {
  padding-top: -20px;
}
.class {
  padding-left: 20px;
}
::v-deep .el-table {
  margin-top: -10px;
  padding-left: 20px;
  padding-top: -50px;
  width: 60%;
  position: relative;
  overflow: hidden;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  width: 100%;
  max-width: 100%;
  background-color: #fff;
  font-size: 14px;
  color: #606266;
}
</style>
